package gjtx3;


import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class MapUse {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        System.out.println("请输入中文：");
        Map m=new HashMap();
        m.put("狗","dog");
        m.put("猪","pig");
        m.put("猫","cat");
        m.put("牛","cow");
        m.put("羊","sheep");
        m.put("鸡","chicken");
        m.put("老虎","tiger");
        m.put("马","horse");
        m.put("狮子","lion");
        m.put("猎豹","cheetah");
        Object f = m.get(in.next());
        if (f==null){
            System.out.println("不存在!");
        }else {
            System.out.println(f);
        }
    }
}
